import 'package:flutter/material.dart';
import 'package:flutter_shop/pages/base/base_state_less_widget.dart';
import 'package:flutter_shop/pages/member/member_tab_page/member_tab_presenter.dart';
import 'package:flutter_shop/r.dart';
import 'package:flutter_shop/res/styles.dart';
import 'package:flutter_shop/utils/utils.dart';
import 'package:flutter_shop/widget/single_line_item.dart';

/// Title:其他条目 <br/>
/// Description: <br/>
/// author:Administrator <br/>
/// date: 2020-03-11  <br/>
/// version 1.0 <br/>
class OtherItem extends BaseStateLessWidget<MemberTabPresenter> {

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: <Widget>[
          SingleLineItem(
            leftImage: R.assetsImgMemberIconYouhui,
            leftText: "领取优惠券",
            onPressed: () {
              Utils.showToast("领取优惠券");
            },
          ),
          SingleLineItem(
            leftImage: R.assetsImgMemberIconYouhuiHave,
            leftText: "已领取优惠券",
            onPressed: () {
              Utils.showToast("已领取优惠券");
            },
          ),
          SingleLineItem(
            leftImage: R.assetsImgMemberIconAddress,
            leftText: "地址管理",
            onPressed: () {
              Utils.showToast("地址管理");
            },
          ),
          Gaps.v_gap_10,
          SingleLineItem(
            leftImage: R.assetsImgMemberIconAbout,
            leftText: "关于商城",
            onPressed: () {
              Utils.showToast("关于商城");
            },
          ),
          SingleLineItem(
            leftImage: R.assetsImgMemberIconScan,
            leftText: "扫码进行投诉",
            onPressed: () {
              Utils.showToast("扫码进行投诉");
            },
          ),
        ],
      ),
    );
  }
}
